const getters = {
  token: (state) => state.user.token,
  isTeacher: (state) => {
    console.log(state);
    return /ts$/.test(state.user.token);
    // return true;
  },
  baseIP: (state) => state.user.baseIP,
  userInfo: (state) => state.user.userInfo,
  startTime: (state) => state.user.startTime,
  categoryList: (state) => state.dict.categoryList,
  readTypeList: (state) => state.dict.readTypeList,
  readTypeObj: (state) => state.dict.readTypeObj,
  questionTypeObj: (state) => state.dict.questionTypeObj,
  isBritish: (state) => state.user.isBritish,
  sentenceCategory: (state) => state.dict.sentenceCategory,
  wordCategory: (state) => state.dict.wordCategory,
  color_main: (state) => state.dict.color_main,
  categoryBook: (state) => state.dict.categoryBook,
  phoneme: (state) => state.dict.phoneme,
};
export default getters;
